package dto

import (
	"server/model"
)

type UserDto struct {
	ID        uint   `json:"id"`
	Name      string `json:"name"`
	Telephone string `json:"telephone"`
	Signature string `json:"signature"`
	Level     string `json:"level"`
}

func ToUserDto(user model.User) UserDto {
	return UserDto{
		ID:        user.ID,
		Name:      user.Name,
		Telephone: user.Telephone,
		Signature: user.Signature,
		Level:     user.Level,
	}
}
